<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width"/>
        <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
        <title>统战成员学习平台</title>
	    <link rel="stylesheet" type="text/css" href="../../css/base.css" />
        <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    </head>
    <body>
        <header class="red">
          <div id='app' style="display:none" v-show="true">
            <div class="ui_border_b">
                <span tapmode onclick="closeWin()" class="left"><i class="icon_back_white"></i></span>
                <p>结业证书</p>
                <span tapmode @click="publishMoment()" class="right"><i class="icon_fx_white"></i></span>
            </div>
          </div>
    	</header>
      <script type="text/javascript" src="../../script/api.js"></script>
		  <script type="text/javascript" src="../../script/vue.min.js"></script>
      <script type="text/javascript" src="../../script/common.js"></script>
        <script type="text/javascript" src="../../script/layer_mobile/layer.js"></script>
      <script type="text/javascript">
      new Vue({
        el: '#app',
        data: {
          imageBasePath: imageBasePath,
          certificateFileUrl:'',
          scheduleName: ''
        },
        mounted: function() {
            var $this = this;
            apiready = function(){
              $this.certificateFileUrl = api.pageParam.certificateFileUrl;
              $this.scheduleName = api.pageParam.scheduleName;
              api.parseTapmode();
              openfrmFromWin({
                  frmName: 'certificate_frm',
                  bounces: true,
                  pageParam: api.pageParam
              });
            };
        },
        methods: {
          publishMoment: function() {
            var $this = this;
            openWin('../discovery/publish_win', {shareType: 2,certificateFileUrl: $this.certificateFileUrl,publishMsg: '我已经学习完了 '+$this.scheduleName+' 的所有内容，快来围观吧！'});
          }
        }
      });
    </script>
  </body>
</html>
